using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DatabaseManager.Models
{
    ///<summary>
    ///数据表与系统模块的关联关系
    ///</summary>
    [SugarTable("table_module_mappings")]
    public partial class TableModuleMappings
    {
           public TableModuleMappings(){


           }
           /// <summary>
           /// Desc:主键ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public int Id {get;set;}

           /// <summary>
           /// Desc:应用系统ID
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="system_id")]           
           public int SystemId {get;set;}

           /// <summary>
           /// Desc:数据库ID
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="database_id")]           
           public int DatabaseId {get;set;}

           /// <summary>
           /// Desc:表名
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="table_name")]           
           public string TableName {get;set;}

           /// <summary>
           /// Desc:所属模块
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="module_name")]           
           public string ModuleName {get;set;}

           /// <summary>
           /// Desc:表用途描述
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="description")]           
           public string Description {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="created_time")]           
           public DateTime CreatedTime {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="updated_time")]           
           public DateTime UpdatedTime {get;set;}

    }
}
